package com.szzg10.webservice.chapter1;

import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.ParameterStyle;
import javax.jws.soap.SOAPBinding.Style;

@WebService
@SOAPBinding(style = Style.DOCUMENT)
public class Teams {

	private TeamsUtility utility;
	
	public Teams() {
		utility = new TeamsUtility();
		utility.make_test_teams();
	}
	
	@WebMethod
	public Team getTeam(String name) {
		return utility.getTeam(name);
	}
	
	@WebMethod
	public List<Team> getTeams() {
		return utility.getTeams();
	}
}
